From df4b564d69cc7d2e751537eff61259b36f37e9e5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 19 Mar 2021 21:56:48 -0400 Subject: [PATCH] build: Disable g_assert in release builds The ngl renderer is heavily using g_assert, and it is written with the assumption that these assertions will be compiled out in release builds. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5e505a9b94..fd2cea9a13 100644 --- a/meson.build +++ b/meson.build @@ -66,7 +66,7 @@ if debug gtk_debug_cflags += '-DG_ENABLE_CONSISTENCY_CHECKS' endif elif optimization in ['2', '3', 's'] - gtk_debug_cflags += '-DG_DISABLE_CAST_CHECKS' + gtk_debug_cflags += '-DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT' endif add_project_arguments(gtk_debug_cflags, language: 'c') -- 2.30.2